﻿<UserControl x:Class="ShoeBoxScan.UserImage"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    Width="200" Height="200" >

  <DockPanel LastChildFill="True"  Background="Beige" Opacity="0.7">
    <Slider DockPanel.Dock="Top" Minimum="0" Maximum="360" Name="slider1" Canvas.Top="-2" Grid.Column="1" />
    <Border  Grid.Column="1" Grid.Row="1" BorderBrush="Black" BorderThickness="4" MinWidth="50" MinHeight="50" MaxWidth="150" MaxHeight="150">
      <Image Name="Output" Width="90" Height="90">
        <Image.LayoutTransform>
          <TransformGroup>
            <RotateTransform Angle="{Binding ElementName =slider1, Path=Value}"></RotateTransform>
          </TransformGroup>
        </Image.LayoutTransform>
      </Image>


    </Border>

  </DockPanel>
</UserControl>
